import http from "@/http";
//新增参数类型
export type RoomFloor = {
    floorId: string;
    floorName: string;
    floorNum: string;
    orderNum: string;
}
//列表查询参数类型
export type ListParm = {
    currentPage:number;
    pageSize:number;
    floorName:string;
}
//新增
export const addApi = (parm: RoomFloor) => {
    return http.post("/api/roomFloor", parm)
}
//列表
export const getListApi = (parm:ListParm)=>{
    return http.get("/api/roomFloor/list",parm)
}
//编辑
export const editApi = (parm: RoomFloor) => {
    return http.put("/api/roomFloor", parm)
}
//删除
export const deleteApi = (floorId: string) => {
    return http.delete(`/api/roomFloor/${floorId}`)
}
//查询下拉列表
export const getSelectFloorApi = ()=>{
    return http.get("/api/roomFloor/select")
}